package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SFriendBlessSucess extends Object implements IMessageBase
    {
        public var blessLevel:int;
        public var fromPlayerId:int;
        public var fromPlayerName:String;
        public var fromPlayerSex:int;
        public var fromPlayerCamp:int;
        public var fromPlayerCareer:int;
        public var blessMsgType:int;
        public var blessCount:int;
        public var blessRewardExp:int;
        public const _type:int = 83;
        public static var _regist:SFriendBlessSucess = new SFriendBlessSucess(true);

        public function SFriendBlessSucess(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SFriendBlessSucess();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.blessLevel);
            param1.writeInt(this.fromPlayerId);
            param1.writeString(this.fromPlayerName);
            param1.writeByte(this.fromPlayerSex);
            param1.writeByte(this.fromPlayerCamp);
            param1.writeShort(this.fromPlayerCareer);
            param1.writeInt(this.blessMsgType);
            param1.writeInt(this.blessCount);
            param1.writeInt(this.blessRewardExp);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.blessLevel = param1.readByte();
            this.fromPlayerId = param1.readInt();
            this.fromPlayerName = param1.readString();
            this.fromPlayerSex = param1.readByte();
            this.fromPlayerCamp = param1.readByte();
            this.fromPlayerCareer = param1.readShort();
            this.blessMsgType = param1.readInt();
            this.blessCount = param1.readInt();
            this.blessRewardExp = param1.readInt();
            
        }

    }
}
